// Playground - noun: a place where people can play

import Cocoa
import Foundation

var str = "Hello, playground"

public let fileManager = NSFileManager.defaultManager()

public let processInfo = NSProcessInfo.processInfo()

public let processEnvironment = processInfo.environment

public let environmentKeys = NSProcessInfo.processInfo().environment.keys.array

public let playgroundName2 : String = (processEnvironment["PLAYGROUND_NAME"] ?? NSProcessInfo.processInfo().processName) as String


public let playgroundName : String =  (processEnvironment["PLAYGROUND_NAME"] ?? NSProcessInfo.processInfo().processName) as String

#if os(IOS)
    public let playgroundContainerPath: String = (processEnvironment["PLAYGROUND_SANDBOX_CONTAINER_PATH"] ?? "?") as String
#else
    public let playgroundContainerPath: String = NSHomeDirectory().stringByDeletingLastPathComponent
    
#endif




//test
println("\(processInfo)")
println("\(environmentKeys)")
println(playgroundName)